import request from '@/utils/request'

// 查询标注记录详情列表
export function listDetails(query) {
  return request({
    url: '/mark/details/list',
    method: 'get',
    params: query,
  })
}

// 查询标注记录详情详细
export function getDetails(detailId) {
  return request({
    url: '/mark/details/' + detailId,
    method: 'get',
  })
}

// 新增标注记录详情
export function addDetails(data) {
  return request({
    url: '/mark/details',
    method: 'post',
    data: data,
  })
}

// 修改标注记录详情
export function updateDetails(data) {
  return request({
    url: '/mark/details',
    method: 'put',
    data: data,
  })
}

// 删除标注记录详情
export function delDetails(detailId) {
  return request({
    url: '/mark/details/' + detailId,
    method: 'delete',
  })
}

// 导出标注记录详情
export function exportDetails(query) {
  return request({
    url: '/mark/details/export',
    method: 'get',
    params: query,
  })
}
